home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
comm
/
bbs
/
TA1_22.lha
/
Rexx
/
TrShell.trans
< prev
Wrap
Text File
|
1994-03-23
|
2KB
|
55 lines
/* Starts up TrShell. TrShell is a simple remote shell for TransAmiga
that uses the FIFO: device and fifo.library by Matt Dillon. This is a
fully interactive shell, unlike the one that is (used to be) in
TransAmiga's SysOp menu. This means that applications designed for CLI
usage can actually be run through the BBS.
To run it, you must first startup up a CLI process, and redirect its
I/O to FIFO:. The flags for FIFO: (what appears after the /) cannot be
changed, but the rest can be. For example, I like to use the Commodore
shell, but you could use AShell, or CSh or any other shell.
s:TrShell-Startup is a simple script file that sets the prompt and a
few aliases, nothing fancy. The TrShell command line merely specifies
what the current BBS line is (-n) and the name of the FIFO: to use (-f,
make sure this is EXACTLY the same as what you give in the line above).
If you wanted to run some kind of door through TrShell, you would have
your shell execute that in it's startup script. BE SURE TO HAVE THE
SHELL END IMMEDIATELY AFTER THAT COMMAND TERMINATES! While TrShell is
actives, users are in YOUR shell on YOUR computer. So unless you are
using this as a straight remote shell (which only you should have access
to), have the last command terminate your shell (eg. 'EndShell' if you
are using Commodore's shell).
Addition:
This improved script offers a kind of security. You are asked for a
password. You can change the password at line 34. Is has to be upper
case and a maximum of 9 characters or you can't login. If you don't want
a password check use the script of TransAmiga v1.11 release.
*/
options results
CHECKPSWD="SECRET" /* Change this */
PRAGMA('stack','50000')
CLS
PROMPT 9 'HIDE' '"Please enter Password: "'
PASSWORD=RESULT
systeminfo 8 ; bbsline=result
id=time(s)
PASSWORD=UPPER(PASSWORD)
IF PASSWORD="###PANIC" THEN EXIT
IF ~(PASSWORD=CHECKPSWD) THEN DO
PRINT 'ACCESS DENIED!!!'
CONTINUE
EXIT
END
address command 'NewShell FIFO:trshell'id'/rwkecs'
address command 'BBS:Bin/TrShell -n'bbsline' -ftrshell'id
continue
exit